package com.quick.develop.flowable.config;

/**
 * @author junyuan.liu
 * @description: TODO
 * @date 2022/6/29 15:22
 */
//@Configuration
//    implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration>
public class FlowableTaskInstanceConfig  {
    
    /*@Override
    public void configure(SpringProcessEngineConfiguration configuration) {
//        configuration.setHistoricTaskInstanceEntityManager(customHistoricTaskInstanceEntityManager(taskServiceConfiguration));
        CustomHistoricTaskInstanceEntityManager customHistoricTaskInstanceEntityManager = customHistoricTaskInstanceEntityManager(configuration);
        TaskServiceConfiguration taskServiceConfiguration = configuration.getTaskServiceConfiguration();
        taskServiceConfiguration.setHistoricTaskInstanceEntityManager(customHistoricTaskInstanceEntityManager);
        configuration.setTaskServiceConfiguration(taskServiceConfiguration);
    }*/
    
    /*@Bean
    public CustomHistoricTaskInstanceEntityManager customHistoricTaskInstanceEntityManager(SpringProcessEngineConfiguration configuration){
        configuration.initTaskServiceConfiguration();
        TaskServiceConfiguration taskServiceConfiguration = configuration.getTaskServiceConfiguration();
        return new CustomHistoricTaskInstanceEntityManager(taskServiceConfiguration, taskServiceConfiguration.getHistoricTaskInstanceDataManager());
        
    }*/
}
